package com.czl.module_service.fragment.borrowing

import android.os.Bundle
import com.czl.base.base.BaseTabFragment
import com.czl.base.base.BaseTabViewModel
import com.czl.base.config.AppConstants
import com.czl.base.databinding.FragmentBaseTabBinding
import com.czl.base.route.RouteCenter
import me.yokeyword.fragmentation.SupportFragment

/**
 * @author by xubin,
 * @date on 2022/1/21.
 * PS: Not easy to write code, please indicate.
 */

class BorrowHomeFragment : BaseTabFragment<FragmentBaseTabBinding, BaseTabViewModel>() {

    override fun fragments(): List<SupportFragment> {
        return arrayListOf(
            RouteCenter.navigate(AppConstants.Router.Service.F_SERVICE_BORROW_LIST, Bundle().apply {

            }) as SupportFragment,

            RouteCenter.navigate(AppConstants.Router.Service.F_SERVICE_BORROW_LIST, Bundle().apply {

            }) as SupportFragment
        )
    }

    override fun initData() {
        super.initData()
        viewModel.tabData.set("待借,已借")
        viewModel.tvTitle.set("物品借用")
    }

    override fun useBaseLayout(): Boolean {
        return true
    }
}